package car.aistar.service;

import car.aistar.dto.XXRyuyue;

import car.aistar.dto.XxrCarDto;
import car.aistar.dto.XxrRecordDto;
import car.aistar.dto.Xxrkanjia;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface XXRxiaoshouService {
//    /**
//    *@Author 肖相荣
//    *@Description //TODO 销售页面预约表根据预约表中carID进行删除预约记录
//    *@Date 17:51 2020/10/5
//    *@Param [id]
//    *@return void
//    **/
//    void delByCarId(Long id);

    List<XXRyuyue> findAllYuyue(Long id,String search);
    /**
    *@Author 肖相荣
    *@Description //TODO 销售页面预约处理表
    *@Date 19:11 2020/10/5
    *@Param [id, search, pageNow, pageSize]
    *@return com.github.pagehelper.PageInfo<car.aistar.dto.XXRyuyue>
    **/
    PageInfo<XXRyuyue> findByPageyuye(Long id, String search, Integer pageNow, Integer pageSize);

    /**
     *@Author 肖相荣
     *@Description //TODO 销售页面预约成功表
     *@Date 19:11 2020/10/5
     *@Param [id, search, pageNow, pageSize]
     *@return com.github.pagehelper.PageInfo<car.aistar.dto.XXRyuyue>
     **/
    PageInfo<XXRyuyue> findByPageYok(Long id, String search, Integer pageNow, Integer pageSize);


    /**
    *@Author 肖相荣
    *@Description //TODO 销售页面砍价表
    *@Date 19:11 2020/10/5
    *@Param [id, search, pageNow, pageSize]
    *@return com.github.pagehelper.PageInfo<car.aistar.dto.Xxrkanjia>
    **/
    PageInfo<Xxrkanjia> findByPagekanjia(Long id, String search, Integer pageNow, Integer pageSize);


    /**
    *@Author 肖相荣
    *@Description //TODO 销售页面负责车辆
    *@Date 19:12 2020/10/5
    *@Param [id]
    *@return void
    **/
    PageInfo<XxrCarDto> findByPageCar(Long id, String search, Integer pageNow, Integer pageSize);
    void delKanjia(Long id);



    /**
    *@Author 肖相荣
    *@Description //TODO 销售页面交易记录查询
    *@Date 22:04 2020/10/6
    *@Param
    *@return
    **/
    List<XxrRecordDto> findAllRecord(Long id, String search);
    /**
     *@Author 肖相荣
     *@Description //TODO 销售页面交易记录
     *@Date 19:12 2020/10/5
     *@Param [id]
     *@return void
     **/
    PageInfo<XxrRecordDto> findByPageRecord(Long id, String search, Integer pageNow, Integer pageSize);


}
